#include "login.h"
#include "ui_login.h"
#include"form.h"
#include<QMediaPlayer>
#include<QSoundEffect>
login::login(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::login)
{
    ui->setupUi(this);
sound1=new QSoundEffect;
sound1->setSource(QUrl("qrc:/n/C:/Users/ROG/Desktop/3Part001.wav"));
sound1->setLoopCount(QSoundEffect::Infinite);
sound1->setVolume(25);
sound1->play();
}

login::~login()
{
    delete ui;
}

void login::on_pushButton_clicked()
{
    this->close();
    Form *f=new Form();
    f->show();
}
